package chapter_03_factory.p3_abstractFactory.product.factory;

import chapter_03_factory.p3_abstractFactory.product.cpu.AmdCpu;
import chapter_03_factory.p3_abstractFactory.product.cpu.Cpu;
import chapter_03_factory.p3_abstractFactory.product.mainboard.AmdMainboard;
import chapter_03_factory.p3_abstractFactory.product.mainboard.Mainboard;

/**
 * Created by CharloYao on 2017/3/23.
 * AMD产品族接口
 */
public class AmdFactory implements AbstractFactory {
    @Override
    public Cpu createCpu() {
        return new AmdCpu(938);
    }

    @Override
    public Mainboard createMainboard() {
        return new AmdMainboard(938);
    }
}
